cmake_minimum_required(VERSION 3.8)
project(find_line)

if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
  add_compile_options(-Wall -Wextra -Wpedantic)
endif()
include_directories(
  include
  ${Boost_INCLUDE_DIRS}
  ${PCL_LIBRARY_DIRS}
  ${EIGEN3_INCLUDE_DIR}
)
# find dependencies
find_package(ament_cmake REQUIRED)
find_package(rclcpp REQUIRED)
find_package(std_msgs REQUIRED)
find_package(sensor_msgs REQUIRED)
find_package(pcl_conversions REQUIRED)
find_package(PCL REQUIRED)
find_package(Eigen3 REQUIRED)
add_executable(fl_node src/fl.cpp src/fuction_temp.cpp src/scan_process.cpp src/trans_forms.cpp
                src/trans_forms_group.cpp src/seat_convert.cpp)
ament_target_dependencies(fl_node 
  rclcpp 
  sensor_msgs
  PCL
  pcl_conversions
  std_msgs

)

#link_directories(${PCL_LIBRARY_DIRS})
add_definitions(${PCL_DEFINITIONS})
target_link_libraries(fl_node ${PCL_LIBRARIES} ${EIGEN3_LIB})
install(TARGETS
  fl_node 
  DESTINATION lib/${PROJECT_NAME})
ament_package()
